
class 超时(Exception):
    pass


class UDP链接已关闭(Exception):
    pass

class UDP会话已关闭(Exception):
    def __init__(self, 会话ID: int, *args: object) -> None:
        self.会话ID = 会话ID
        super().__init__(*args)

    def __str__(self) -> str:
        return f'{UDP会话已关闭} 会话ID = {self.会话ID}'
